// 引入axios实例
import axios from './axios'

// 用户登录
export const login = data => {
  return axios({
    method: 'post',
    url: '/front/user/login',
    data: new URLSearchParams(data).toString()
  })
}

// 获取用户基本信息
export const getInfo = () => {
  return axios({
    method: 'get',
    url: '/front/user/getInfo'
  })
}
